#include <stdio.h>

void updateArr(int i, char *s, char c);
void delArr(char s[], int i);

int i;

// create an array
char s[4];
char *sp = s;

int main(void) {
    // put or update member in array
    updateArr(0, sp, 'k');
    updateArr(1, sp, 'e');
    updateArr(2, sp, 'n');
    updateArr(3, sp, 't');

    // delete member from array
    delArr(s, 3);

    // get member from array
    for (i = 0; i < sizeof(s); i++) {
        printf("%d\n", s[i]);
        printf("%c\n", s[i]);
    }

    return 0;
}

// update member in array
void updateArr(int i, char *s, char c) {
    *(s+i) = c;
}

// delete member from array
void delArr(char *s, int i) {
    for (; i < sizeof(s); i++) {
        *(s+i) = *(s+i+1);
    }
    *(s+i) = 0;
}